<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>订单管理——鑫四合珠宝管理后台</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="huyuzhu">
<!-- Le styles -->
<link href="${pageContext.request.contextPath}/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/css/base.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/main.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap-affix.js"></script>
</head>
<body>
<!-- 头部 -->
<s:include value="../header.jsp"/>
<!-- 主内容区开始 -->
<div class="conBox clearfix">
  <s:if test="#session.UserInfo.userVO.userType==1">
<s:include value="../a/menu.jsp">
	<s:param name="menuIndex" value="3"/>
</s:include>
</s:if>
<s:else>
<s:include value="menu.jsp">
	<s:param name="menuIndex" value="3"/>
</s:include>
</s:else>
  <div class="mainBox">
    <h1>订单管理</h1>
    <div class="ncBox">
      <a href="${pageContext.request.contextPath}/o/queryOrdersList.do" class="btn"><i class="icon-search"></i> 订单查询</a> 
      <a href="${pageContext.request.contextPath}/o/queryOrdersList.do" class="btn"><i class="icon-cog"></i> 新单处理</a> 
      <a href="${pageContext.request.contextPath}/o/addOrdersPage.do" class="btn"><i class="icon-plus"></i> 创建订单</a>
       <s:if test="statisticsList.size==0">
		<div class="noResult">
       	<h3>抱歉，暂时没有订单统计信息！</h3>
      	</div>
      </s:if>
      <s:else>
      <table class="table table-bordered table-hover">
        <caption>订单统计:</caption>
        <thead>
        <tr>
          <th>状态</th>
          <th>数量</th>
        </tr>
        </thead>
        <tbody>
        <s:iterator value="statisticsList">
        <tr>
          <td>
          	<s:if test="type==1">新单</s:if>
          	<s:if test="type==2">未完工</s:if>
          	<s:if test="type==3">完工</s:if>
          	<s:if test="type==4">收获未交货</s:if>
          	<s:if test="type==5">交货</s:if>
          </td>
          <td><s:property value="quantity"/></td>
        </tr>
        </s:iterator>
        </tbody>
      </table>
      </s:else>
      <dl>
        <dt>使用说明：</dt>
        <dd>订单只能由管理员和市场人员创建并管理，其它流程人员只可以看到订单的部分信息。</dd>
      </dl>
    </div>
  </div>
</div>
<!-- 主内容区结束 --> 
<!-- 尾部 -->
<s:include value="../bottom.jsp"/>
</body>
</html>